package com.honeywen.mymvc.learn;

import java.io.ObjectStreamException;
import java.io.Serializable;

/**
 * @author wangwei
 * @date 2019/12/17
 */
public class Elvis implements Serializable {

    private static final Elvis INSTANCE = new Elvis();

    private Elvis() {

    }


    public static Elvis getInstance() {
        return INSTANCE;
    }


    private Object readResolve() throws ObjectStreamException {
        return INSTANCE;
    }


}
